package com.WISSC.service;

import com.WISSC.bean.Authorization;
import com.WISSC.bean.layuiBean.ResultPage;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 授权机构信息表 服务类
 * </p>
 *
 * @author 张凯
 * @since 2019-05-06
 */
public interface AuthorizationService extends IService<Authorization> {


    /**
     * @param page
     * @param limit
     * @param unitName
     * @param startTime
     * @param city
     * @param grantType
     * @param grantLevel
     * @return 查询 +  分页
     */
    ResultPage<Authorization> selectMyPage(int page, int limit, String unitName, Long startTime, String city, Integer grantType, Integer grantLevel,HttpSession session);


    /**
     * 授权机构查询
     */
    List<Authorization> selectAuthorizationByUnitname(Authorization authorization);

    /**
     * @param authorization
     * @param pIds
     * @return 机构信息添加
     */
    String authorizationInsert(Authorization authorization, String[] pIds);

    boolean login(Authorization authorization, HttpSession session1);
    /**
     *
     * @param grantId
     * @return 机构图片回显--url
     */
    Map getImageUrl(Long grantId);

    String getTeamCity(Long id);

      Authorization countPerson();

    Map updateAuthorization(Authorization authorization, String[] pIds);
}
